<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="js/jquery-1.12.4.js"></script>
    <title>test</title>
</head>
<body>
<h1>测试</h1>
<a href="hello.do">访问后端程序</a>
<a href="http://127.0.0.1:9999/pms-service/hello.do">访问后端程序</a>

<button onclick="index()">点我看看</button>

<script>
  function test() {
    $.ajax("hello.do",{
      type:"get" ,
      dataType:"text",
      success:function( text ) {
        console.log("响应结果为：",text )
      }
    })
  }
</script>
</body>
</html>